package com.kgc.scd.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import com.kgc.scd.bean.Foot;
import com.kgc.scd.bean.FootExample;
import com.kgc.scd.bean.Foots;
import org.apache.ibatis.annotations.Param;

public interface FootMapper extends BaseMapper<Foot> {
    long countByExample(FootExample example);

    int deleteByExample(FootExample example);

    int deleteByPrimaryKey(Integer footId);

    int insert(Foot record);

    int insertSelective(Foot record);

    List<Foot> selectByExample(FootExample example);

    Foot selectByPrimaryKey(Integer footId);

    int updateByExampleSelective(@Param("record") Foot record, @Param("example") FootExample example);

    int updateByExample(@Param("record") Foot record, @Param("example") FootExample example);

    int updateByPrimaryKeySelective(Foot record);

    int updateByPrimaryKey(Foot record);

    Foots selectProductByProd(String proId);

    void delete(QueryWrapper<Foot> wrapper);

    List<Integer> selectProds(String userId);

    void deleteprodAndUser(@Param("userId") String userId,@Param("proId") String proId);

    boolean clearFoot(@Param("userId")String userId);

    boolean clearCollect(@Param("userId")String userId);
}